home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
After Midnight Carnal Escapes
/
After Midnight Carnal Escapes.iso
/
mac
/
INSTALL.DAT
< prev
next >
Wrap
Text File
|
1994-04-03
|
10KB
|
302 lines
/*
INSTALL.DAT
Project: After Midnight
Version: 1.0
*/
/* The @DefineProject block starts the installation script by telling
Install what version, product, and other basic information that
Install will need to process the installation. The text that
@Name is set to is the same information that can be found on the
first line of the DISK.ID file. Likewise the text that @Version
is set to, is the same information that can be found on the second
line of the DISK.ID file. This information remains constant
throughout the entire distribution set. @Subdir and @OutDrive are
used to define the default drive and directory for the target system
during the installation process. @InDiskBell set to @True will cause
INSTALL to beep when it prompts the user for additional disks during
the installation.
*/
@DefineProject
@Name = "After Midnight"
@Version = "1.0"
@Subdir = "\\QTW"
@OutDrive = C
@EndProject
/* The following @DefineVars block is used to assign variables to
specific types (Integer, QString, Drive, & Dir) as well as establishing
default values for the variables. Variables may be used throughout
the wINSTALL script file, and can be assigned to any legal value for
its type, at just about any time during the script file. Later in
this script file these variables are assigned values depending whether
particular files will be installed or not.
*/
@DefineVars
@Integer @amid = 600
@Integer @qtw = 1500
@Integer @TSIZE = @Eval(@amid+@qtw)
@Integer @Red = @RGB(255,0,0) //DEFINE COLOR RED
@Integer @Green = @RGB(0,255,0) //DEFINE COLOR GREEN
@Integer @Blue = @RGB(0,0,255) //DEFINE COLOR BLUE
@Integer @Black = @RGB(0,0,0) //DEFINE COLOR BLACK
@Qstring @FileName = "@StartupDrive:@StartupDir\\horny\\dejavu38.mov"
@Qstring @Directory = "@StartupDrive:@StartupDir\\horny"
@EndVars
@BackgroundMode(3,@Blue,@Black)
/*
The following section displays the welcoming message during installation.
@MoveCStr is essentially the same as the @MoveStr command, except that
it allows you to change the background and foreground colors at the
specified location. (Note MoveCStr() is only valid under DOS installations.)
*/
@Display
Welcome!!
Congratulations on your purchase of @Name!
@Pause
@Enddisplay
@SetOption(1001)
@SetOption(1002)
LOOP:
@BackgroundMode(3,@Blue,@Black) //set background to blue/black
@DlgCtrlSize(0,7,5,14,50) // set coordinates & size of list box
@GetOption @Checkbox @Prompt = "Select files to install"
@Name by default will install the program files to the Windows directory,
and Quicktime for Windows to a selected target directory.
The total installation takes approximately 2.1 Mb of disk space.
@Option 1001 = "After Midnight"
@Option 1002 = "Quicktime for Windows "
@EndOption
@if(1002 [= @option)
NEWDRIVE: // Goto label for reselecting drive
/*
wINSTALL will now prompt the end-user for the
drive they wish After Midnight to be installed onto.
*/
@BackgroundMode(3,@Blue,@Black)
@DlgCtrlSize(0,8,15,15,27)
@GetOutDrive @OutDrive @Prompt = "Enter target drive"
@Suppress(0,17) // Suppress floppies & CD-ROM drives
Please select the drive where you wish QuickTime for Windows
to be installed on your machine. Any drive
available can be used assuming you have
access rights to the drive you select, and
there is enough space available for installation.
@EndOutDrive
/*
wINSTALL will now prompt the end-user for the
main directory they wish Quicktime to be installed
onto.
*/
NEWDIR:
@BackgroundMode(3,@Blue,@Black)
@DlgCtrlSize(0,7,0,8,35)
@GetSubdir @Subdir @Prompt = "Enter target directory"
Please select the directory
you wish Quicktime to be installed under.
@EndSubdir
@EndIf
/* The following section demonstrates three constructs in wINSTALL. The
@If block, the @GoTo command, and the 'Membership' concept. @If blocks
can be used virtually anywhere in wINSTALL and can control many actions
taken during the installation process. @Goto commands can be used to
alter the general flow of execution in the script file. This can be
handy in making script files that are flexible. The 'Membership' concept
is used for determination of GROUPS and OPTIONS that may or may not have
been chosen during the installation. Below for example, the condition
inside the @If block, checks to see whether '100 is a member' of the
@Option variable. When a particular OPTION or GROUP is selected, a
flag is set in the @Option or @Group variable for that specific
OPTION number or GROUP letter. In this way, you can test to see
whether specific OPTIONS or GROUPS have been set.
*/
@if(1001 [! @option) @amid=0 @Else @amid = 600 @EndIf //if group not selected zero out
@if(1002 [! @option) @qtw=0 @Else @qtw = 1500 @EndIf //if group not selected zero out
@TSIZE = @Eval((@amid+@qtw)) // add selected options' size requirements
// if total size > free space, then display
// blue background and set default to loop back and select again.
@If(@TSIZE*1024 > @DiskFree(@OutDrive))
@BackgroundMode(3,@Blue,@Black)
@Display
The drive you have selected does not have
enough free space available.
@Pause
@EndDisplay
@GOTO NEWDRIVE
@EndIf
@BackgroundMode(3,@Blue,@Black)
@SetOption(1600) @ClearOption(1700)
@DlgCtrlSize(0,13,12,17,40)
@GetOption @Prompt = "Selected files summary"
You have selected to install the following options.
@if(1001 [= @option) After Midnight @amid K @Else After Midnight WILL NOT BE INSTALLED @EndIf
@if(1002 [= @option) Quicktime for Windows @qtw K @Else Quicktime for Windows WILL NOT BE INSTALLED @EndIf
The selected files will require a total of: @TSIZE K bytes.
The drive currently selected for installation has: @Eval(@DiskFree(@OutDrive)/1K) K free.
You may:
@Option 1600 = "CONTINUE"
@Option 1700 = "RESELECT OPTIONS"
@EndOption
@If(1700 [= @Option) @GOTO Loop @EndIf
@If(1001 [= @Option)
@SetINI("Screen Saver.After Midnight", "MovieFileName", "@FileName" ,"control.ini")
@SetINI("Screen Saver.After Midnight", "Directory", "@Directory" ,"control.ini")
@SetINI("Screen Saver.After Midnight", "Option", "1" ,"control.ini")
@EndIf
/*
The @DefineDisk blocks actually do the copying of the files, from the
floppy disk to the hard disk of the end-users particular choice.
*/
@DefineDisk
@Label = "After Midnight"
/*
The following files are not in a library and are always installed.
*/
/* @File README.txt @OUT *.* */
@If(1001 [= @Option) // if winstall source selected, install
@File qtw\AfterMid.exe @OUT @WindowsDrive:@WindowsDir\*.* @ASKOVERWRITE
@File qtw\AfterMid.scr @OUT @WindowsDrive:@WindowsDir\*.* @ASKOVERWRITE
@File qtw\VBRUN300.DLL @OUT @WindowsDrive:@WindowsDir\*.* @ASKOVERWRITE
@File qtw\THREED.VBX @OUT @WindowsDrive:@WindowsDir\*.* @ASKOVERWRITE
@EndIf // Option 1001
@If(1002 [= @Option) // if install source selected, install
@File qtw\qtmovie.vbx @OUT @WindowsDrive:@WindowsDir\*.* @ASKOVERWRITE
@File qtw\qtpic.vbx @OUT @WindowsDrive:@WindowsDir\*.* @ASKOVERWRITE
@File qtw\mciqtenu.dll @out BIN\*.* @OVERWRITE
@File qtw\playenu.dll @OUT BIN\*.* @OVERWRITE
@File qtw\qthndlr.dll @OUT BIN\*.* @OVERWRITE
@File qtw\qtim.dll @OUT BIN\*.* @OVERWRITE
@File qtw\qtimcmgr.dll @OUT BIN\*.* @OVERWRITE
@File qtw\qtole.dll @OUT BIN\*.* @OVERWRITE
@File qtw\qtvhdw.dll @OUT BIN\*.* @OVERWRITE
@File qtw\viewenu.dll @OUT BIN\*.* @OVERWRITE
@File qtw\mciqtw.drv @OUT BIN\*.* @OVERWRITE
@File qtw\player.exe @OUT BIN\*.* @OVERWRITE
@File qtw\qtnotify.exe @OUT BIN\*.* @OVERWRITE
@File qtw\viewer.exe @OUT BIN\*.* @OVERWRITE
@File qtw\navg.qtc @OUT BIN\*.* @OVERWRITE
@File qtw\qcmc.qtc @OUT BIN\*.* @OVERWRITE
@File qtw\qtcvid.qtc @OUT BIN\*.* @OVERWRITE
@File qtw\qtjpeg.qtc @OUT BIN\*.* @OVERWRITE
@File qtw\qtmsvc.qtc @OUT BIN\*.* @OVERWRITE
@File qtw\qtraw.qtc @OUT BIN\*.* @OVERWRITE
@File qtw\qtrle.qtc @OUT BIN\*.* @OVERWRITE
@File qtw\qtrpza.qtc @OUT BIN\*.* @OVERWRITE
@File qtw\qtrt21.qtc @OUT BIN\*.* @OVERWRITE
@File qtw\qtsmc.qtc @OUT BIN\*.* @OVERWRITE
@File qtw\qtyvu9.qtc @OUT BIN\*.* @OVERWRITE
@EndIf // Option 1002
@EndDisk
/*
* The following lines will be placed into any pre-existing AUTOEXEC.BAT
* file on the boot disk in the boot drive. If no AUTOEXEC.BAT file
* already exists, then one will be created.
*
* Each of the two AUTOEXEC.BAT related commands, @Path and @Verbatim,
* is aware of the structure of an AUTOEXEC.BAT file.
*
* The @Path command examines each node of any existing PATH= commands
* (or its synonym SET PATH=) and places each of the nodes specified
* in the @Path command of the INSTALL.DAT file only if the node
* does not already exist on the PATH= search list of the AUTOEXEC.BAT
* file.
*
* The @Verbatim command instructs INSTALL to place the quoted string
* into the AUTOEXEC.BAT file, if the string is not already there.
*/
@if(1002 [! @option) @qtw=0 @Else @qtw = 1500
@SetAutoexec
@ASKOverwrite
@Path = "@OutDrive:@Subdir\\BIN"
@EndAutoexec
@EndIf //if group not selected zero out
@Finish
@If(@BackgroundMode(3,@Blue,@Black))@EndIf
@Cls
/*
The following command is used to create the wINSTALL group and
add the wINSTALL item to the Windows Program Manager.
*/
@ProgramManager("[CreateGroup(Starware)][AddItem(@WindowsDrive:\\@WindowsDir\\Aftermid.exe, @Name)][AddItem(@StartupDrive:\\@StartupDir\\QTW\\Readme.txt, ReadMe)][AddItem(@StartupDrive:\\@StartupDir\\QTW\\Starplay.exe, Starplay)][ShowGroup(Starware, 2)]")
@Cls
@Name is finished installing. Thank you for your purchase.
If you have any technical or sales questions, please feel free to
contact us at (305)426-4552
@Pause
@If(@BackgroundMode(3,@Blue,@Black))@EndIf
@ChDrive (@OutDrive)
@ChDir ("@SubDir")
@EndFinish
// end-of-file